package cn.itsource.hrm.service;


import cn.itsource.hrm.dot.RegisterDto;
import cn.itsource.hrm.dot.SendSmsCodeDto;

import javax.validation.Valid;

public interface IVerifycodeService {
    /**
     * 生成图形 验证码
     * @param key
     * @return
     */
    String getImageCode (String key);

    /**
     * 发送短信验证码
     * @param smsCodeDto
     */
    void sendSmsCode (@Valid SendSmsCodeDto smsCodeDto);

    /**
     * 注册
     * @param registerDto
     */
    void regist (@Valid RegisterDto registerDto);
}
